<html>
<head>
<script type="text/javascript" src="js/jquery-1.7.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/vehicle.js"></script>
<script type="text/javascript">
	$(function() {
		setInterval(function() {
			ajax_post("vm", "area=1", function(json) {
				var vs=eval("("+json+")");
				if(vs==null)return;
				var info="";
				for(var i=0;i<vs.length;i++){
					var cur=vs[i];
					//if(!!cur.id && !!cur.current.id)
					info+="vehicle "+cur.id+" move from |---"+cur.current.id+"("+cur.current.x+","+cur.current.y+")--->to--->"+cur.next.id+"("+cur.next.x+","+cur.next.y+") "+(cur.current.x==cur.next.x && cur.current.y==cur.next.y?"***finished***":"")+"<br>";
				}
				$("body").html(info);
			});
		}, 600);
	});
</script>
</head>
<body style="font-size:10px;">

</body>
</html>